package week01;

public class T009 {
	public static void main(String[] args) {
		int sum=1000;
		for(int a=1;a<=sum/3;a++) {
			for(int b=a+1;b<=sum/2;b++) {
				int c=sum-a-b;
				if((a*a+b*b)==c*c) {
					System.out.println(a*b*c);
					return ;
				}
			}
		}
	}
}
